<!-- 操作日志 -->
<?php $id="form_".uniqid();?>
<table id="<?php echo $id;?>"></table>
<script>
    $("#<?php echo $id;?>").DataSource({url:'stats/get_log_list',
        fields:[[
            {field:'id',title:'ID',align:'center',width:300,sortable:true},
            {field:'t2',title:'日期',align:'center',width:300,sortable:true},
            {field:'t3',title:'操作者',align:'center',width:300,sortable:true},
            {field:'t4',title:'记录', align:'center', width:300,  sortable:true}
        ]], tools:[
            {instant:false},
            <?php if(in_array('ADD',$auth)){?>
            {text:"新增层级",iconCls:"icon-add",handler:function(){
                $('#<?php echo $id?>').DataSource('add',{title:'新增层级',get:'level/edituser?>',full:true});
            }},
            <?php }?>
            {type:'datebox', text:'日期', width:100,name:'qaddtime'},
            {type:'datebox', text:'-', width:100,name:'zaddtime'},
            {type:'textbox', text:'操作者', width:100,name:'member_account'},
            {type:'combobox',text:'页数',width:40,name:'verify_page',value:'', items:'<option value="">1</option><option value="1">2</option><option value="2">3</option>'},
            {text:"查询", iconCls:"icon-search", handler:function(){
                $('#<?php echo $id?>').DataSource('search');
            }},
            {text:"返回", iconCls:"icon-back",handler:function(){
                Core.addTab('日志记录', 'stats/log_record');
            }},
            '-'
        ],
        checkbox:false,
        edit:true,
        footer:true,
        success:function(){
            $('#<?php echo $id?>').pagination({layout:['links','last'],showRefresh:false});
        }
    });

</script>